<script>
    var a=10
  
    function fun(){
        
        console.log(a+b)
        var b=20
       
    }
    Fun()
    console.log(a+b)
        

</script>